//
//  MainTableViewCell.m
//  
//
//  Created by Apple on 2017/1/5.
//
//

#import "UIImageView+WebCache.h"
#import "MainTableViewCell.h"

@implementation MainTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setModel1:(Maincellmodel1 *)model1{
    
    model1 = model1;
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModelarray:(NSArray *)modelarray{
    _modelarray = modelarray;
    
}
-(void)cellFuZHiWithModel:(NSIndexPath *)dexpath mode:(NSArray *)array;

{
    
        self.mainHeaderview=[[MainHeaderview alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, self.headerView.height)];
            if (dexpath.row==0) {
            self.mainHeaderview.type=1;
            self.titlelable.text = @"推荐达人";
            self.titleChildlable.text =@"不得不认识的人";
                self.mainHeaderview.dataArray = array;
            }
            else if (dexpath.row == 1){
            self.titlelable.text = @"推荐景点";
            self.mainHeaderview.type=2;
            self.titleChildlable.text =@"不得不去的地方";
                self.mainHeaderview.dataArray = array;
                
            }else{
            self.titlelable.text = @"推荐活动";
            self.mainHeaderview.type=3;
            self.titleChildlable.text =@"不得不参加的活动";
                self.mainHeaderview.dataArray = array;

                
            }
    
        [self.headerView addSubview:self.mainHeaderview];
        
  
    

}

@end
